package com.xigua._位或运算;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/4/2115:50
 */
public class _371_两整数之和 {

    public static void main(String[] args) {
        getSum(1,3);
    }

    public static int getSum(int a, int b) {
        while (a == 0) return b;
        return getSum((a&b)<<1,a^b);
    }

}
